home *** CD-ROM | disk | FTP | other *** search
- on DOHAMMERRED
- global GRIDV, GRIDH, GRIDY, TY, TH, NYC, DT, TURN, SOND
- set TY to 0
- set TH to 0
- repeat with N = 1 to 15
- set NYC to random(125)
- if (getAt(GRIDV, NYC) = 3) and (getAt(GRIDV, NYC + 14) = 1) then
- set TY to getAt(GRIDY, NYC)
- set TH to getAt(GRIDH, NYC)
- end if
- if TY <> 0 then
- exit repeat
- end if
- end repeat
- if TY = 0 then
- exit
- end if
- if SOND = 0 then
- puppetSound("FALL")
- end if
- updateStage()
- if SOND = 0 then
- puppetSound("HAMMER")
- end if
- set DT to 2
- set the locH of sprite 29 to TH
- set the locV of sprite 29 to TY
- repeat with N = 1 to 10
- set the castNum of sprite 29 to 82
- updateStage()
- COUNTTIME()
- set the castNum of sprite 29 to 83
- updateStage()
- COUNTTIME()
- end repeat
- if TURN = 1 then
- set the castNum of sprite 29 to 4
- end if
- if TURN = 2 then
- set the castNum of sprite 29 to 70
- end if
- updateStage()
- REMOVESPRITE()
- end
-